<!doctype html>
<html>
<head>
    <meta charset="utf-8" name="referrer" content="never">
</head>
<style>
    .container {
        width: 600px;
        padding: auto;
    }
</style>

<body>
    <style>
        .container {
            width: 600px;
            margin: 0 auto;
        }

        .container>h1 {
            text-align: center;
        }

        .cate>a {
            padding: 15px;
            font-size: 20px;
        }
    </style>
    <div class="container" id="app">
        <h1>图片搜索-添加 : v1</h1>

        <div class="cate">
            <a href="/"> 搜索图片 </a>
        </div>

        {{ message }}

        <form action="/addimg" method="POST" enctype="multipart/form-data" style="padding-top: 30px;">
            <input type="file" name="query_img" style="padding: 20px; background-color: darkgray;">
            <br>
            <br>
            <br>
            <br>
            <input type="submit" style="width: 100px;height: 30px;">
        </form>

        <h2>上传参数:</h2>
        {% if query_path %}
        <img src="{{ query_path }}" height="150px">
        {% endif %}

    </div>
</body>
</html>